<?php
header('content-type:text/html;charset=utf-8');
$subject='This is a test! hello world! hello maizi';
$res=preg_split('#\s#',$subject);
print_r($res);
echo '<hr/>';
$res1=explode(' ',$subject);
print_r($res1);//str_split()